﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace SmashedApples.Data.Commands
{
    public class SaveCommand : BaseCommand
    {
        public Hashtable parameters;

        public String pk;

        public Object pkValue
        {
            get { return (Object)this.parameters[this.pk]; }
            set { this.parameters.Add(this.pk, value);  }
        }

        public Boolean isInsert()
        {
            if (this.parameters[this.pk] == null)
                return true;
            return false;
        }


        public Boolean isUpdate()
        {
            if (this.parameters[this.pk] != null)
                return true;
            return false;
        }


    }
}
